<?
define('_AOW93KKDIEQ',true);
include("includes/config.php");


$act=  isset($_GET['opt'])        ?    $_GET['opt']     : "idx";
$id=  isset($_GET['id'])        ?    intval($_GET['id']): "0";
$name=  isset($_GET['name'])      ?    $_GET['name']    : "";
$app=  isset($_GET['app'])      ?    true   : false;



$choice = array(
				"login" => "login",
                "idx"    => "index",
				"reg"	=> "reg",
				"forgot"=> "forgot",
				"rooms"	=> "rooms",
				"addroom" => "addroom",
				"editroom" => "editroom",
				"delroom" => "delroom",
				"logout"	=> "logout",
				"status"	=> "status"
				);
				
				
if($act=="status")
{
	//check status and return;
	GetSupportInfo($name);
	exit;
}
if(!isset($choice[$act]))
{
	$act="idx";
}
if($act!="reg" && $act!="login" && $act!="forgot")
{
	CheckLoginCP();
}

//Run the actually source
require("source/main/".$choice[$act].".php");
include("templates/main/".$choice[$act].".tpl");
?>